|
1 | 1 | " A sensible vimrc for Go development
|
2 | 2 | "
|
3 |
| -" Please note that the following settings are some default that I used |
| 3 | +" Please note that the following settings are some default that I used |
4 | 4 | " for years. However it might be not the case for you (and your
|
5 | 5 | " environment). I highly encourage to change/adapt the vimrc to your own
|
6 | 6 | " needs. Think of a vimrc as a garden that needs to be maintained and fostered
|
@@ -43,7 +43,7 @@ set fileformats=unix,dos,mac " Prefer Unix over Windows over OS 9 formats
|
43 | 43 | set noshowmatch " Do not show matching brackets by flickering
|
44 | 44 | set noshowmode " We show the mode with airline or lightline
|
45 | 45 | set ignorecase " Search case insensitive...
|
46 |
| -set smartcase " ... but not it begins with upper case |
| 46 | +set smartcase " ... but not it begins with upper case |
47 | 47 | set completeopt=menu,menuone " Show popup menu, even if there is one entry
|
48 | 48 | set pumheight=10 " Completion window max size
|
49 | 49 | set nocursorcolumn " Do not highlight column (speeds up highlighting)
|
@@ -77,7 +77,7 @@ colorscheme molokai
|
77 | 77 | " Set leader shortcut to a comma ','. By default it's the backslash
|
78 | 78 | let mapleader = ","
|
79 | 79 |
|
80 |
| -" Jump to next error with Ctrl-n and previous error with Ctrl-p. Close the |
| 80 | +" Jump to next error with Ctrl-n and previous error with Ctrl-m. Close the |
81 | 81 | " quickfix window with <leader>a
|
82 | 82 | map <C-n> :cnext<CR>
|
83 | 83 | map <C-m> :cprevious<CR>
|
@@ -126,7 +126,7 @@ augroup go
|
126 | 126 | autocmd!
|
127 | 127 |
|
128 | 128 | " Show by default 4 spaces for a tab
|
129 |
| - autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4 |
| 129 | + autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4 |
130 | 130 |
|
131 | 131 | " :GoBuild and :GoTestCompile
|
132 | 132 | autocmd FileType go nmap <leader>b :<C-u>call <SID>build_go_files()<CR>
|
|
0 commit comments