Revision | f73467c61ecad9c354e19079a9d625a80fc6ba11 (tree) |
---|---|
Time | 2023-04-25 16:26:06 |
Author | badcoff33 |
Commiter | badcoff33 |
Ctrl-L runs checktime
@@ -50,7 +50,7 @@ | ||
50 | 50 | set spelloptions=camel |
51 | 51 | |
52 | 52 | " Set behavior for commands ':cc', ':cn', 'cp', etc. |
53 | -set switchbuf=useopen,uselast | |
53 | +set switchbuf=usetab,uselast | |
54 | 54 | |
55 | 55 | " keep cursor line away from the upper and lower window border |
56 | 56 | set scrolloff=2 |
@@ -60,10 +60,9 @@ | ||
60 | 60 | set sidescroll=8 |
61 | 61 | set sidescrolloff=3 |
62 | 62 | |
63 | -" window behavior | |
64 | -set nosplitbelow | |
63 | +" split window behavior | |
64 | +set splitbelow | |
65 | 65 | set splitright |
66 | -set noequalalways | |
67 | 66 | |
68 | 67 | " folding |
69 | 68 | set foldmethod=indent |
@@ -137,7 +136,7 @@ | ||
137 | 136 | imap <C-Space> <Esc> |
138 | 137 | |
139 | 138 | " Add blank lines |
140 | -nnoremap <expr> <CR> &modifiable ? "i\<CR><C-f>" : "\<CR>" | |
139 | +nnoremap <expr> <CR> &modifiable ? "i\<CR>" : "\<CR>" | |
141 | 140 | |
142 | 141 | " Consistent cursor movement |
143 | 142 | noremap! <A-Left> <Home> |
@@ -236,7 +235,7 @@ | ||
236 | 235 | |
237 | 236 | " By default, <C-l> clears and redraws the screen (like :redraw!). The |
238 | 237 | " following mapping does a little bit more to keep the screen sane. |
239 | -nmap <C-l> :nohlsearch<cr>:diffupdate<cr>:redraw!<cr> | |
238 | +nmap <C-l> <Cmd>nohlsearch<CR><Cmd>diffupdate<CR><Cmd>redraw!<CR><Cmd>checktime<CR> | |
240 | 239 | imap <C-l> <Esc><C-l> |
241 | 240 | |
242 | 241 | " Type a word, press below key sequence and "Enclose" `current` (word) {bang}! |
@@ -297,8 +296,6 @@ | ||
297 | 296 | |
298 | 297 | augroup GroupVimrc " {{{ |
299 | 298 | autocmd! |
300 | - autocmd InsertEnter * checktime | |
301 | - autocmd BufWinEnter * checktime | |
302 | 299 | autocmd VimEnter * execute "colorscheme" ( (&term == "builtin_gui") ? "twotone" : "apollo" ) |
303 | 300 | "autocmd FocusLost * try | silent wall | catch /.*/ | endtry |
304 | 301 | autocmd BufNewFile .vimrc execute "0read" g:vim_home.."\\templates\\local_vimrc" |