Make vimrc to not have code-case

pull/59/head
Igor Irianto 3 years ago
parent 24c2e49bc9
commit 9987438ea4

@ -301,7 +301,7 @@ nnoremap <silent> <Leader>h/ :History/<CR>
As I mentioned earlier, Vim has two ways to search in files: `:vim` and `:grep`. `:grep` uses external search tool that you can reassign using `grepprg` keyword. I will show you how to configure Vim to use ripgrep instead of terminal grep when running the `:grep` command.
Now let's setup `grepprg` so `:grep` uses ripgrep. Add this in your `vimrc`.
Now let's setup `grepprg` so `:grep` uses ripgrep. Add this in your vimrc.
```
set grepprg=rg\ --vimgrep\ --smart-case\ --follow
```

@ -206,7 +206,7 @@ If you are on an external program (like Chrome browser) and you copy a block of
You may wonder if `"*` and `"+` do the same thing, why does Vim have two different registers? Some machines use X11 window system. This system has 3 types of selections: primary, secondary, and clipboard. If your machine uses X11, Vim uses X11's *primary* selection with the `quotestar` (`"*`) register and X11's *clipboard* selection with the `quoteplus` (`"+`) register. This is only applicable if you have `xterm_clipboard` option available in your Vim build (`+xterm_clipboard` in `vim --version`). If your Vim doesn't have `xterm_clipboard`, it's not a big deal. It just means that both `quotestar` and `quoteplus` are interchangeable.
I find doing `=*p` or `=+p` to be cumbersome. To make Vim to paste copied text from the external program with just `p`, you can add this in your `vimrc`:
I find doing `=*p` or `=+p` to be cumbersome. To make Vim to paste copied text from the external program with just `p`, you can add this in your vimrc:
```
set clipboard=unnamed

@ -373,7 +373,7 @@ To start Vim without Viminfo data, you can run from the terminal:
vim -i NONE
```
To make it permanent, you can add this in your `vimrc` file:
To make it permanent, you can add this in your vimrc file:
```
set viminfo="NONE"

Loading…
Cancel
Save