From 215695710f8b04e70ed5dbd0426c1e15b0b225d7 Mon Sep 17 00:00:00 2001 From: Raphael McSinyx Date: Sun, 20 Aug 2017 14:11:21 +0700 Subject: Update 2017-08-20 <3 --- vim/.vim/ftplugin/cpp.vim | 3 +++ vim/.vim/ftplugin/markdown.vim | 4 ++++ vim/.vim/ftplugin/python/python.vim | 6 ++++++ vim/.vim/vimrc | 13 ++----------- 4 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 vim/.vim/ftplugin/cpp.vim create mode 100644 vim/.vim/ftplugin/markdown.vim create mode 100755 vim/.vim/ftplugin/python/python.vim (limited to 'vim/.vim') diff --git a/vim/.vim/ftplugin/cpp.vim b/vim/.vim/ftplugin/cpp.vim new file mode 100644 index 0000000..2f6ffc8 --- /dev/null +++ b/vim/.vim/ftplugin/cpp.vim @@ -0,0 +1,3 @@ +" GNU Coding Standards +setlocal cindent +setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1 diff --git a/vim/.vim/ftplugin/markdown.vim b/vim/.vim/ftplugin/markdown.vim new file mode 100644 index 0000000..6cbbf03 --- /dev/null +++ b/vim/.vim/ftplugin/markdown.vim @@ -0,0 +1,4 @@ +setlocal shiftwidth=4 +inoremap ≤ +inoremap ≥ +inoremap ... … diff --git a/vim/.vim/ftplugin/python/python.vim b/vim/.vim/ftplugin/python/python.vim new file mode 100755 index 0000000..dc4ed52 --- /dev/null +++ b/vim/.vim/ftplugin/python/python.vim @@ -0,0 +1,6 @@ +let g:jedi#popup_on_dot = 0 +let g:jedi#popup_select_first = 0 +let g:jedi#show_call_signatures = 2 +let g:jedi#smart_auto_mappings = 0 +setlocal shiftwidth=4 +syntax keyword pythonBoolean False True None diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc index efb300d..8b61c9a 100755 --- a/vim/.vim/vimrc +++ b/vim/.vim/vimrc @@ -13,18 +13,9 @@ set tabstop=8 expandtab shiftwidth=2 softtabstop=-1 smarttab set dictionary=/usr/share/dict/words set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1 set omnifunc=syntaxcomplete#Complete -let g:jedi#popup_on_dot = 0 -let g:jedi#popup_select_first = 0 -let g:jedi#show_call_signatures = 2 -let g:jedi#smart_auto_mappings = 0 autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal -autocmd FileType c,h,go setlocal noexpandtab shiftwidth=8 -autocmd FileType cpp setlocal cinoptions={s}s +autocmd FileType c,h,go setlocal cindent noexpandtab shiftwidth=8 autocmd FileType rst setlocal shiftwidth=3 -autocmd FileType css,javascript,markdown,python setlocal shiftwidth=4 -autocmd FileType python syntax keyword pythonBoolean False True None +autocmd FileType css,javascript setlocal shiftwidth=4 autocmd BufWinEnter * let w:m1=matchadd('ColorColumn', '\%<81v.\%>80v', -1) map Q gq -inoremap ≤ -inoremap ≥ -inoremap ... … -- cgit 1.4.1