1
0
mirror of https://github.com/pgrondek/config.git synced 2024-11-29 06:53:13 +00:00
config/vim/vimrc

34 lines
657 B
VimL
Raw Normal View History

2019-04-04 16:43:29 +00:00
"colorscheme badwolf
" Indent
set autoindent
set softtabstop=4
set tabstop=4
set expandtab
2019-11-05 09:06:21 +00:00
autocmd FileType make setlocal noexpandtab
2019-04-04 16:43:29 +00:00
" Search
set incsearch
set hlsearch
set ignorecase
" Tabs
:au BufAdd,BufNewFile,BufRead * nested tab sball
2019-04-07 09:22:35 +00:00
set splitbelow
set splitright
2019-04-04 16:43:29 +00:00
set laststatus=2 " Always show a status bar
set scrolloff=3 " Keep n lines when scrolling
set showcmd " show command in bar
set number " show line numbers
2019-11-26 09:38:13 +00:00
set relativenumber " relative line numbers
2019-04-04 16:43:29 +00:00
set wildmenu " visual autocomplete for command menu
set tabpagemax=10
function Xsudo()
:w !sudo tee %
:q!
endfunction
command Wsudo :w !sudo tee %
command Xsudo exec Xsudo()