mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
forgot .vimrc
This commit is contained in:
parent
ee4c02ea5b
commit
fb0f52136d
2 changed files with 52 additions and 1 deletions
2
init.sh
2
init.sh
|
@ -40,7 +40,7 @@ PATH="$PATH:$rc/sh"
|
||||||
|
|
||||||
umask 027
|
umask 027
|
||||||
|
|
||||||
for f in .bashrc .zshrc shrc.zsh mingw.sh .conkyrc .inputrc .screenrc .xinitrc; do
|
for f in .bashrc .zshrc shrc.zsh mingw.sh .vimrc .conkyrc .inputrc .screenrc .xinitrc; do
|
||||||
r="$rc/$(dotless "$f")"
|
r="$rc/$(dotless "$f")"
|
||||||
hardlink "$f" "$r"
|
hardlink "$f" "$r"
|
||||||
done
|
done
|
||||||
|
|
51
vimrc
Normal file
51
vimrc
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
set nocompatible " screw vi
|
||||||
|
|
||||||
|
if (&term =~ "^xterm") " enable colors on any xterm
|
||||||
|
let &t_Co=256
|
||||||
|
let &t_AF="\e[38;5;%dm"
|
||||||
|
let &t_AB="\e[48;5;%dm"
|
||||||
|
endif
|
||||||
|
|
||||||
|
syntax enable " required for folding as well
|
||||||
|
|
||||||
|
if has('gui_running')
|
||||||
|
set guioptions-=m " hide menu
|
||||||
|
set guioptions-=T " hide toolbar"
|
||||||
|
set guifont=Consolas:h9
|
||||||
|
set columns=84
|
||||||
|
set lines=36
|
||||||
|
cd $HOME " might not be ideal...
|
||||||
|
|
||||||
|
colorscheme candycode
|
||||||
|
else
|
||||||
|
colorscheme Tomorrow-Night
|
||||||
|
|
||||||
|
set colorcolumn=79
|
||||||
|
endif
|
||||||
|
|
||||||
|
set nomodeline " ignore vim settings in files
|
||||||
|
set backupdir=~/.vim/backup " put tilde files elsewhere
|
||||||
|
|
||||||
|
set number " lines
|
||||||
|
set hlsearch " highlight
|
||||||
|
let c_syntax_for_h=1 " use C highlighting for .h files
|
||||||
|
|
||||||
|
set foldmethod=syntax
|
||||||
|
set foldlevelstart=99
|
||||||
|
"set smartindent " automatic indentation
|
||||||
|
set nosmartindent
|
||||||
|
|
||||||
|
set backspace=eol,start,indent " make backspace useful
|
||||||
|
|
||||||
|
" word wrapping
|
||||||
|
set nowrap
|
||||||
|
set nolinebreak
|
||||||
|
|
||||||
|
" 8 space tabs
|
||||||
|
set tabstop=8
|
||||||
|
set shiftwidth=8
|
||||||
|
set smarttab
|
||||||
|
|
||||||
|
" 4 spaces as tabs for various languages
|
||||||
|
au FileType bash,sh,zsh,awk,python,lua setlocal tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||||
|
au BufRead,BufNewFile *.json setlocal tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
Loading…
Add table
Reference in a new issue