diff options
Diffstat (limited to 'posts')
-rw-r--r-- | posts/bash_harder_with_vim.md | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/posts/bash_harder_with_vim.md b/posts/bash_harder_with_vim.md index 15933bf..4d60831 100644 --- a/posts/bash_harder_with_vim.md +++ b/posts/bash_harder_with_vim.md | |||
@@ -1,8 +1,9 @@ | |||
1 | Bash is tricky, don't let your editor get in your way. Here's a couple of neat | 1 | Bash is tricky, don't let your editor get in your way. Here's a couple of neat |
2 | addtions you could make to your `vimrc` for a better shell programming | 2 | additions you could make to your `vimrc` for a better shell programming |
3 | experience. | 3 | experience. |
4 | 4 | * * * | |
5 | **Man pages inside vim**. Source this script to get started: | 5 | #### Man pages inside vim |
6 | Source this script to get started: | ||
6 | 7 | ||
7 | ``` | 8 | ``` |
8 | runtime ftplugin/man.vim | 9 | runtime ftplugin/man.vim |
@@ -15,9 +16,10 @@ By default, the manpage is opened in a horizontal split, I prefer using a new ta | |||
15 | ``` | 16 | ``` |
16 | let g:ft_man_open_mode = 'tab' | 17 | let g:ft_man_open_mode = 'tab' |
17 | ``` | 18 | ``` |
19 | * * * | ||
18 | 20 | ||
19 | 21 | #### Scratchpad to test your commands | |
20 | **Scratchpad to test your commands**. I often test my `sed` substitutions, here is | 22 | I often test my `sed` substitutions, here is |
21 | a sample from the script used to generate this site: | 23 | a sample from the script used to generate this site: |
22 | 24 | ||
23 | ``` | 25 | ``` |