summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-08-07 18:22:39 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-08-07 18:22:39 +0100
commit6fabf41f6ef9f1d26fe6c1e88d848d8e2d72ac0d (patch)
tree1ceae20c4d297d4510826baf8edeb5be4619d7a9
parentae90709b6f846d10ab89f6695490b0752ab02939 (diff)
Add cmaps for <c-p> and <c-n>
-rw-r--r--vim/.vim/after/ftplugin/tex/mappings.vim3
-rw-r--r--vim/.vimrc6
2 files changed, 8 insertions, 1 deletions
diff --git a/vim/.vim/after/ftplugin/tex/mappings.vim b/vim/.vim/after/ftplugin/tex/mappings.vim
index 939af68..9da769b 100644
--- a/vim/.vim/after/ftplugin/tex/mappings.vim
+++ b/vim/.vim/after/ftplugin/tex/mappings.vim
@@ -36,9 +36,10 @@ iabbrev <buffer> gD \Delta
iabbrev <buffer> gT \Theta
iabbrev <buffer> gL \Lambda
iabbrev <buffer> gX \Xi
-iabbrev <buffer> gF \Phi
iabbrev <buffer> gP \Pi
+iabbrev <buffer> gS \Sigma
iabbrev <buffer> gW \Omega
+iabbrev <buffer> gF \Phi
nnoremap <buffer> <LocalLeader>i :VimtexCompile<CR>
nnoremap <buffer> <LocalLeader>e :VimtexErrors<CR>
diff --git a/vim/.vimrc b/vim/.vimrc
index 8709521..3e2d84d 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -30,6 +30,7 @@ Plug 'justinmk/vim-sneak'
Plug 'klen/python-mode'
Plug 'lervag/vimtex'
Plug 'majutsushi/tagbar'
+Plug 'mhinz/vim-startify'
Plug 'mileszs/ack.vim'
Plug 'nanotech/jellybeans.vim'
Plug 'rdnetto/YCM-Generator', { 'branch' : 'stable' , 'on' : 'YcmGenerateConfig' }
@@ -269,6 +270,11 @@ nnoremap + za
nnoremap <BS> <C-W>h
nnoremap <Leader>fw :%s/\s\+$//<cr>
+cnoremap <c-p> <up>
+cnoremap <c-n> <down>
+cnoremap <up> <c-p>
+cnoremap <down> <c-n>
+
"" Colorscheme
let g:seoul256_background =235
silent! colo $COLORSCHEME