about summary refs log tree commit diff
path: root/vim/.vim/vimrc
diff options
context:
space:
mode:
authorRaphael McSinyx <vn.mcsinyx@gmail.com>2017-02-09 10:34:15 +0700
committerRaphael McSinyx <vn.mcsinyx@gmail.com>2017-02-09 10:34:15 +0700
commita295db54fbe539abda4542195fa3b5781d13806d (patch)
treeedefbd95590f1976419deaff71ae827e2c4e7410 /vim/.vim/vimrc
parent3722d3e087637b952e34dfd326b0b4d362705bef (diff)
downloaddotfiles-a295db54fbe539abda4542195fa3b5781d13806d.tar.gz
Update 20170209. Highlights: awesome 4.0, gruvbox dark -> light
Diffstat (limited to 'vim/.vim/vimrc')
-rwxr-xr-xvim/.vim/vimrc5
1 files changed, 2 insertions, 3 deletions
diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc
index 8a3a409..a8e8239 100755
--- a/vim/.vim/vimrc
+++ b/vim/.vim/vimrc
@@ -6,14 +6,13 @@ set directory=~/.cache/vim/swap
 set backupdir=~/.cache/vim/backup
 set viminfo+=n~/.cache/vim/viminfo
 set clipboard=exclude:cons\|linux
-set hidden
 set wildmenu
 set showcmd
 set nostartofline
 set ruler
 set confirm
 set list
-if has("patch-7.4.710")
+if has("patch-7.4.710") && has("gui_running")
   set listchars+=space:·,tab:\ \ 
 else
   set listchars+=tab:├─
@@ -23,7 +22,7 @@ set omnifunc=syntaxcomplete#Complete
 set dictionary=/usr/share/dict/words
 set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1
 autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal
-autocmd FileType vim,pascal,html setlocal shiftwidth=2 tabstop=2
+autocmd FileType vim,pascal,lua,html,rst setlocal shiftwidth=2 tabstop=2
 autocmd FileType c,h,cpp,arduino setlocal noexpandtab shiftwidth=8 tabstop=8
 autocmd FileType markdown setlocal textwidth=79
 autocmd FileType python syntax keyword pythonBoolean False True None