|
diff --git a/vimrc b/vimrc
|
| ... |
| 17 |
nnoremap <C-p> :Explore<cr> |
17 |
nnoremap <C-p> :Explore<cr> |
| 18 |
nnoremap <C-q> :copen<cr> |
18 |
nnoremap <C-q> :copen<cr> |
| 19 |
|
19 |
|
|
|
20 |
" Personal tabs/spaces settings. |
|
|
21 |
autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 |
|
|
22 |
autocmd Filetype c,cpp,lua setlocal expandtab tabstop=4 shiftwidth=4 |
|
|
23 |
autocmd Filetype nix,html,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 |
|
|
24 |
|
| 20 |
" Commenting blocks of code. |
25 |
" Commenting blocks of code. |
| 21 |
" https://stackoverflow.com/a/1676672 |
26 |
" https://stackoverflow.com/a/1676672 |
| 22 |
augroup commenting_blocks_of_code |
27 |
augroup commenting_blocks_of_code |
| ... |
| 29 |
augroup END |
34 |
augroup END |
| 30 |
noremap <silent> cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR> |
35 |
noremap <silent> cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<CR>:nohlsearch<CR> |
| 31 |
noremap <silent> cu :<C-B>silent <C-E>s/^\(\s*\)\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR> |
36 |
noremap <silent> cu :<C-B>silent <C-E>s/^\(\s*\)\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR> |
| 32 |
|
|
|
| 33 |
" Personal tabs/spaces settings. |
|
|
| 34 |
autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4 |
|
|
| 35 |
autocmd Filetype c,cpp,lua setlocal expandtab tabstop=4 shiftwidth=4 |
|
|
| 36 |
autocmd Filetype nix,html,javascript,css setlocal expandtab tabstop=2 shiftwidth=2 |
|
|
| 37 |
|
37 |
|
| 38 |
" Function to auto format source code files. |
38 |
" Function to auto format source code files. |
| 39 |
function! Format() |
39 |
function! Format() |
| ... |