From 88aa8bead4fb49cdadce06e1b9a9d870b41aa6d1 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Tue, 16 Jun 2020 03:03:56 +0200 Subject: [PATCH] Add vimrc --- .vimrc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .vimrc diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..10448d1 --- /dev/null +++ b/.vimrc @@ -0,0 +1,33 @@ +"colorscheme badwolf +" Indent +set autoindent +set softtabstop=4 +set tabstop=4 +set expandtab +autocmd FileType make setlocal noexpandtab + +" Search +set incsearch +set hlsearch +set ignorecase + +" Tabs +:au BufAdd,BufNewFile,BufRead * nested tab sball +set splitbelow +set splitright + +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 +set relativenumber " relative line numbers +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()