summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorLuke <luke@lukesmith.xyz>2018-02-11 15:07:34 -0700
committerLuke <luke@lukesmith.xyz>2018-02-11 15:07:34 -0700
commit48cfe3906d740906d11bcc3326f8962f3f9ea4ec (patch)
tree25298cddc72218db7fc1375738b9ba053926efeb /.vimrc
parent23a22c21715a331e84d3259571b90a4b37cc1fa8 (diff)
downloadeibhear-48cfe3906d740906d11bcc3326f8962f3f9ea4ec.tar.gz
eibhear-48cfe3906d740906d11bcc3326f8962f3f9ea4ec.tar.zst
eibhear-48cfe3906d740906d11bcc3326f8962f3f9ea4ec.zip
vim edits
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc10
1 files changed, 6 insertions, 4 deletions
diff --git a/.vimrc b/.vimrc
index 8d3528d..fe0bbf9 100644
--- a/.vimrc
+++ b/.vimrc
@@ -27,9 +27,6 @@
map <C-k> <C-w>k
map <C-l> <C-w>l
-" Replace all is aliased to S.
- nnoremap S :%s//g<Left><Left>
-
" Open my bibliography file in split
map <F9> :vsp<space>~/Documents/LaTeX/uni.bib<CR>
@@ -38,6 +35,9 @@
xnoremap <leader>o "oy<esc>:sp <C-R>o<CR>
vnoremap <leader>o "oy<esc>:sp <C-R>o<CR>
+" Replace all is aliased to S.
+ nnoremap S :%s//g<Left><Left>
+
"For saving view folds:
"au BufWinLeave * mkview
"au BufWinEnter * silent loadview
@@ -69,9 +69,11 @@
inoremap <F10> <esc>:Goyo<CR>a
" Enable Goyo by default for mutt writting
+ " Goyo's width will be the line limit in mutt.
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=72
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo
- " Goyo's width will be the line limit in mutt.
+ " Automatically start in insert mode.
+ autocmd BufRead,BufNewFile /tmp/neomutt* :exe "normal! O"
" Enable autocompletion:
set wildmode=longest,list,full