-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
110 lines (90 loc) · 2.79 KB
/
.vimrc
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
set nocompatible " be iMproved
#Plugged plugin manager auto download
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
"------------------plugged SETUP-------------------
call plug#begin('~/.config/nvim/autoload/plug.vim')
Plug 'tomtom/tcomment_vim'
Plug 'tpope/vim-surround'
Plug 'bling/vim-airline'
Plug 'Townk/vim-autoclose'
Plug 'vim-scripts/dante.vim' "Dark color theme
Plug 'mattn/webapi-vim' "Required for Gist plugin
Plug 'mattn/gist-vim'
Plug 'cseelus/vim-colors-clearance'
Plug 'rhysd/vim-grammarous'
Plug 'JuliaEditorSupport/julia-vim'
call plug#end() " required
"-------------------------------------------------
" LANGUAGE SPELL AND SYNTAXCHECK SETTINGS
"
set spell
"au BufReadPost *.md set spelllang=(EVAL PYTHONSCRIPT HERE)
" the "," and "," a ", " to "
set spellfile=/keybase/private/dietercastel/langtools/mylist.utf-8.add
""""""""""""""""""""""
"Color scheme (downloaded by plugged)
colorscheme dante
"Disable the swap file
set noswapfile
#" Remove the current directory from the backupdir (no annoying ~files)
#set backupdir-=.
#" Add my own directory to the backupdir (So still backup possible)
#set backupdir^=C:/Dropbox/Vim/backup,~/tmp,/tmp
"Enable relative Line Numbers
set rnu
" Show current absolute line number too!
set nu
"set background to dark
set background=dark
"display current cursor position in lower right corner.
set ruler
"tab/spacing settings
set smartindent
set tabstop=2 "nb of visual spaces per TAB
set softtabstop=2 "nb of spaces in tab when editing
set shiftwidth=2
"Show command in bottom right portion of the screen
set showcmd
"Indent stuff
set smartindent
set autoindent
"Always show the status line
set laststatus=2
"Set incremental searching
set incsearch
"Highlight searching
set hlsearch
"Case insensitive search
set ignorecase
set smartcase
"enable code folding
set foldenable
"hide mouse when typing
set mousehide
" For using argdo see http://vimcasts.org/transcripts/43/en/
" What is the effect of this in vimrc?
"set hidden
noremap! jj <Esc>
" TODO figure this out how to map it?
"map gk gcc
" Mark 80th column
"set colorcolumn=80
"highlight ColorColumn ctermbg=lightgrey guibg=darkgrey
"PLUGIN SPECIFIC CONFIGS
"---------GIST--------
let g:gist_post_private = 1 "Private by default
let g:gist_detect_filetype = 1
" Only :w! updates a gist.
let g:gist_update_on_write = 2
"-------END GIST------
"---------GRAMMAROUS--------
:nmap gf <Plug>(grammarous-fixit)
:nmap gn <Plug>(grammarous-move-to-next-error)
" check feature of gn
:nmap gp <Plug>(grammarous-move-to-previous-error)
" check feature of gp
"-------END GRAMMAROUS------