Configure vim
This commit is contained in:
parent
602feee5e1
commit
e537ee3420
|
@ -0,0 +1,41 @@
|
|||
set nocompatible
|
||||
filetype off
|
||||
syntax on
|
||||
filetype plugin indent on
|
||||
set encoding=utf-8
|
||||
let mapleader = " "
|
||||
|
||||
" hard tabs
|
||||
set tabstop=2
|
||||
|
||||
" backspace delete like normal
|
||||
set backspace=2
|
||||
|
||||
" reduce extraneous files
|
||||
set nobackup
|
||||
set nowritebackup
|
||||
set noswapfile
|
||||
set history=50
|
||||
set ruler " always cursor position
|
||||
set showcmd " incremental search
|
||||
set laststatus=2 " always status line
|
||||
set autowrite " :write before commands
|
||||
set modelines=0 " modelines are insecure
|
||||
set nomodeline
|
||||
|
||||
set textwidth=80
|
||||
set colorcolumn=+1
|
||||
|
||||
set number
|
||||
set numberwidth=5
|
||||
|
||||
set splitbelow
|
||||
set splitright
|
||||
|
||||
" ctrl-w movement
|
||||
nnoremap <C-j> <C-w>j
|
||||
nnoremap <C-k> <C-w>k
|
||||
nnoremap <C-h> <C-w>h
|
||||
nnoremap <C-l> <C-w>l
|
||||
|
||||
|
|
@ -38,8 +38,9 @@
|
|||
(mixed-text-file "powerline-theme"
|
||||
"source " liquidprompt "/share/liquidprompt/themes/powerline/powerline.theme")
|
||||
))))
|
||||
(simple-service 'gitconfig home-files-service-type
|
||||
(simple-service 'dotfiles home-files-service-type
|
||||
(list
|
||||
`(".gitconfig" ,(local-file "./data/gitconfig"))
|
||||
`(".vimrc" ,(local-file "./data/vimrc"))
|
||||
)))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue