This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! functions#store_highlight_attrs(group) | |
| " Wants: Str | |
| " Returns: Dict | |
| " Does: Stores all attribute of the given highlight group | |
| " and returns them as a dictionary. | |
| if has('gui_running') | |
| let l:ui_type = 'gui' | |
| else | |
| let l:ui_type = 'cterm' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! CreateSpacer() | |
| if &number || &relativenumber | |
| return repeat(" ", &numberwidth + 1) | |
| endif | |
| return "" | |
| endfunction | |
| set statusline= | |
| set statusline+=%{CreateSpacer()} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| if (( $# == 1 )); then | |
| declare proc="$(ps axc | grep "$1")" | |
| read -ra pid <<< "$proc" | |
| if (( $pid )); then | |
| echo $pid | |
| exit 0 | |
| else |
NewerOlder