aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
blob: 9ffc8dae01da19c6173fcaa366871d3a8ab7a15d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
set termguicolors
set relativenumber
set number
set splitright
set splitbelow
set ignorecase
set cursorline
set signcolumn=no
set background=dark
set cc=80
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set smartindent
set wrap
set undofile
set undodir=$HOME/.vim/undo
set nobackup
set nowritebackup
set noswapfile
set laststatus=2
set notimeout
set hlsearch
set cinoptions+=:0,N-s,E-s,(s,m1,t0
set completeopt=menu,menuone,noselect
set autoread

filetype plugin on
filetype indent on
syntax on

let mapleader = " "
let netrw_banner = 0
let fuzzbox_mappings = 0
let g:apc_enable_ft = {'c':1}
let g:netrw_list_hide = '\~$'

xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
nmap <leader>f :FuzzyFilesRoot<cr>
nmap <leader>t :! ctags -R .<cr><cr>

nnoremap <C-l> :noh<cr>
nnoremap <C-u> <C-u>zz
nnoremap <C-d> <C-d>zz
nnoremap gd <C-]>
nnoremap gD <C-]>f(b[<C-i>

au FileType lua set tabstop=2
au FileType lua set shiftwidth=2

colors mooncheese
hi clear Error

call plug#begin()

Plug 'vim-fuzzbox/fuzzbox.vim'
Plug 'tpope/vim-fugitive'

call plug#end()