blob: 53db4a30bb1456fcf41b47514bd232943f6752ed (
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
62
63
64
65
66
67
|
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 = '\~$'
nmap <silent> <leader>f :FuzzyFilesRoot<cr>
nmap <silent> <leader>t :! ctags -R .<cr><cr>
nmap <silent> <leader>s :Alternate<cr>
nnoremap <silent> <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
" Saves the last line I was on in a file
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
call plug#begin()
Plug 'vim-fuzzbox/fuzzbox.vim'
Plug 'tpope/vim-fugitive'
Plug 'ton/vim-alternate'
call plug#end()
|