-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
plugins.editor.vim
164 lines (135 loc) · 5.12 KB
/
plugins.editor.vim
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
" plugins.editor.vim
"
" Maintained by Claud D. Park <posquit0.bj@gmail.com>
" https://www.posquit0.com/
"" All trailing whitespace characters to be highlighted
"" Plugin: Vim Better Whitespace {{{
" Disable this plugin for specific file types
let g:better_whitespace_filetypes_blacklist=[
\ 'diff', 'gitcommit', 'unite', 'qf', 'help', 'nerdtree', 'startify'
\ ]
" Strip all trailing whitespace everytime save the file
autocmd BufWritePre * StripWhitespace
"" }}}
"" The fastest (Neo)Vim plugin for asynchronously displaying the colours in the file
"" Plugin: Colorizer {{{
" Method to highlight
let g:Hexokinase_highlighters=['backgroundfull']
" Patterns to match for all filetypes
let g:Hexokinase_optInPatterns = [
\ 'full_hex',
\ 'triple_hex',
\ 'rgb',
\ 'rgba',
\ 'hsl',
\ 'hsla',
\ 'colour_names'
\ ]
"" }}}
"" Maintain a yank history to cycle between when pasting
"" Plugin: Yoink {{{
" History size
let g:yoinkMaxItems=5
" When set to 1, delete operations such as x or d or s will also be added to the yank history
let g:yoinkIncludeDeleteOperations=0
" When we reach the beginning or end of the yank history, the swap will stop there
let g:yoinkSwapClampAtEnds=0
" Key mappings for yank
"nmap <c-n> <plug>(YoinkPostPasteSwapBack)
"nmap <c-p> <plug>(YoinkPostPasteSwapForward)
"nmap p <plug>(YoinkPaste_p)
"nmap P <plug>(YoinkPaste_P)
nmap <expr> p yoink#canSwap() ? '<plug>(YoinkPostPasteSwapBack)' : '<plug>(YoinkPaste_p)'
nmap <expr> P yoink#canSwap() ? '<plug>(YoinkPostPasteSwapForward)' : '<plug>(YoinkPaste_P)'
nmap [y <plug>(YoinkRotateBack)
nmap ]y <plug>(YoinkRotateForward)
"" }}}
"" Provides additional text objects
"" Plugin: Targets {{{
"" }}}
"" EditorConfig plugin for Vim
"" Ensure that this plugin works well with Tim Pope's fugitive
"" Plugin: EditorConfig {{{
" Avoid loading EditorConfig for any remote files over ssh
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
"" }}}
"" Bringing Sublime Text's awesome multiple selection feature into Vim
"" Plugin: Vim Multiple Cursors {{{
" Turn off the default key bindings
let g:multi_cursor_use_default_mapping=0
" Configure custom key bindings
let g:multi_cursor_next_key='<C-n>'
let g:multi_cursor_prev_key='<C-p>'
let g:multi_cursor_skip_key='<C-x>'
let g:multi_cursor_quit_key='<Esc>'
" Quit and delete all existing cursor in visual mode after pressing quit key
let g:multi_cursor_exit_from_visual_mode=1
" Quit and delete all existing cursor in insert mode after pressing quit key
let g:multi_cursor_exit_from_insert_mode=0
"" }}}
"" For intensely orgasmic commenting
"" Plugin: Auto Pairs {{{
" Shortcut for fast wrapping the word
let g:AutoPairsShortcutFastWrap='<C-e>'
" Enable FlyMode
let g:AutoPairsFlyMode=1
" Insert the key at the Fly Mode jumped postion
let g:AutoPairsShortcutBackInsert='<C-b>'
"" }}}
"" All about surroundings: parenthless, brackets, quotes, XML tags and more
"" Plugin: Vim Surround {{{
"" }}}
"" Displaying thin vertical lines at each indentation level for code
"" TODO: Very slow after Goyo mode and with long line files
"" Plugin: indentLine {{{
" Specify a character to be used as indent line
let g:indentLine_char='┆'
" let g:indentLine_char='|'
" Specify a character to be used as indent line on the first level
let g:indentLine_first_char='¦'
" Whether the first indent level should be shown
let g:indentLine_showFirstIndentLevel=1
" Specify how much indent level do you want to use for indentLine
let g:indentLine_indentLevel=10
" Specify a list of file types to disable indent line
let g:indentLine_fileTypeExclude=['vim', 'json', 'markdown', 'nerdtree']
" Specify a list of buffer names to disable indentline
let g:indentLine_bufNameExclude=['NERD_tree.*']
" Whether to show leading spaces
let g:indentLine_leadingSpaceEnabled=1
" Specify a character to show for leading spaces
let g:indentLine_leadingSpaceChar='·'
" Allow to see the concealed in the current cursor line
" when in normal & indent mode as intended
let g:indentLine_noConcealCursor=''
"" }}}
"" Display a guide for the current line's indent level
"" Enable it with options(+hl, -hl, +cc, -cc)
"" Plugin: Local Indent Guide {{{
" autocmd FileType * LocalIndentGuide +hl +cc
"" }}}
"" Show the context of the currently visible buffer contents
"" Plugin: Context {{{
" Whether to enable the context plugin
let g:context_enabled=1
" INFO: Issue in Neovim which leads to some artefacts
let g:context_nvim_no_redraw=1
" }}}
"" Highlight the flooding part of an overly long line
"" Plugin: Lengthmatters {{{
" Highlight when opening a new window
let g:lengthmatters_on_by_default=1
" Whether to highlight based on the value of textwidth
let g:lengthmatters_use_textwidth=1
" Fallback if textwidth is not set
let g:lengthmatters_start_at_column=81
" No highlight when the file is read-only
let g:lengthmatters_exclude_readonly=1
"" }}}
"" Toggles between hybrid and absolute line numbers automatically
"" Plugin: Number Toggle {{{
"" }}}
"" Smooth scrolling for Vim done right
"" Usage: <C-u>, <C-d>, <C-f>, <C-b>
"" Plugin: Smoothie {{{
"" }}}