diff options
author | Max Christian Pohle | 2020-12-27 01:46:33 +0100 |
---|---|---|
committer | Max Christian Pohle | 2020-12-27 01:46:33 +0100 |
commit | 9747ae42e4201b0991152d45a604b81c01d3e81c (patch) | |
tree | 0017957c8ce35e0579cdaf5634fdd50dfe8c3420 | |
parent | 785fa78f80e79a72f479a1e7ba2fcebe6151f6ba (diff) | |
download | vim-karlmarks-master.tar.bz2 vim-karlmarks-master.zip |
-rw-r--r-- | README.md | 47 |
1 files changed, 29 insertions, 18 deletions
@@ -18,7 +18,9 @@ always deinstall it again. | |||
18 | 18 | ||
19 | I recommend you use this in your `~/.vim/vimrc` | 19 | I recommend you use this in your `~/.vim/vimrc` |
20 | 20 | ||
21 | set signcolumn=yes | 21 | ```vim |
22 | set signcolumn=yes | ||
23 | ``` | ||
22 | 24 | ||
23 | because if you set it to `signcolumn=auto` it will flicker when you change | 25 | because if you set it to `signcolumn=auto` it will flicker when you change |
24 | the window. | 26 | the window. |
@@ -30,31 +32,37 @@ and extract it inside `~/.vim/pack/coderonline/start/`. | |||
30 | 32 | ||
31 | ### Example | 33 | ### Example |
32 | 34 | ||
33 | mkdir ~/.vim/pack/coderonline/start/ | 35 | ```sh |
34 | cd ~/.vim/pack/coderonline/start/ | 36 | mkdir ~/.vim/pack/coderonline/start/ |
35 | # download plugin in that directory: | 37 | cd ~/.vim/pack/coderonline/start/ |
36 | curl -o vim-karlmarks.zip https://git.entwicklerseite.de/vim-karlmarks/snapshot/vim-karlmarks-master.zip | 38 | # download plugin in that directory: |
37 | # unzip the zip file | 39 | curl -o vim-karlmarks.zip https://git.entwicklerseite.de/vim-karlmarks/snapshot/vim-karlmarks-master.zip |
38 | unzip vim-karlmarks.zip | 40 | # unzip the zip file |
39 | # remove zip file (not needed any more) | 41 | unzip vim-karlmarks.zip |
40 | rm vim-karlmarks.zip | 42 | # remove zip file (not needed any more) |
43 | rm vim-karlmarks.zip | ||
44 | ``` | ||
41 | 45 | ||
42 | ## Configure optional and additional marks | 46 | ## Configure optional and additional marks |
43 | 47 | ||
44 | Here comes some inspiration for additional marks you could enable. Some | 48 | Here comes some inspiration for additional marks you could enable. Some |
45 | are potentially disturbing and are not pre-configured for that reason: | 49 | are potentially disturbing and are not pre-configured for that reason: |
46 | 50 | ||
47 | let g:karlmarks = '"' " position in buffer when left | 51 | ```vim |
48 | let g:karlmarks .= '{}' " start/end paragraph | 52 | let g:karlmarks = '"' " position in buffer when left |
49 | let g:karlmarks .= '()' " start/end sentence | 53 | let g:karlmarks .= '{}' " start/end paragraph |
50 | let g:karlmarks .= '[]' " start/end sentence | 54 | let g:karlmarks .= '()' " start/end sentence |
51 | let g:karlmarks .= '.' " last change | 55 | let g:karlmarks .= '[]' " start/end sentence |
52 | let g:karlmarks .= "^" " insert mode stopped | 56 | let g:karlmarks .= '.' " last change |
53 | let g:karlmarks .= "'`" | 57 | let g:karlmarks .= "^" " insert mode stopped |
58 | let g:karlmarks .= "'`" | ||
59 | ``` | ||
54 | 60 | ||
55 | but the `g_karlmarks` setting defaults to | 61 | but the `g_karlmarks` setting defaults to |
56 | 62 | ||
57 | let g:karlmarks = "<>" | 63 | ```vim |
64 | let g:karlmarks = "<>" | ||
65 | ``` | ||
58 | 66 | ||
59 | to allow easier modification of the last selected block, e.g. reposition the | 67 | to allow easier modification of the last selected block, e.g. reposition the |
60 | start of the block with `m<` and use `gv` to show the new selection. | 68 | start of the block with `m<` and use `gv` to show the new selection. |
@@ -66,5 +74,8 @@ Remove the folder `~/.vim/pack/coderonline/start/vim-karlmarks` (if you named | |||
66 | it as suggested in the Installation section) | 74 | it as suggested in the Installation section) |
67 | 75 | ||
68 | ### Exmaple | 76 | ### Exmaple |
69 | rm -irv ~/.vim/pack/coderonline/start/vim-karlmarks | 77 | |
78 | ```sh | ||
79 | rm -irv ~/.vim/pack/coderonline/start/vim-karlmarks | ||
80 | ``` | ||
70 | 81 | ||