Search notes:

vim script: manipulate options programatically

" ..\vimscript\run_.bat _manipulate_options_programatically
"
redir > _manipulate_options_programatically.out

" Is ignore case on or off?
echo &ic
" 0

" Set ignore case on
let &ic = 1
echo &ic
" 1

" Set ignore case off
let &ic = 0
echo &ic
" 0

" dynamically gettion options value
let s:optionName = 'ic'
echo eval('&' . s:optionName)
" 0

redir END

q
Github repository about-vim, path: /options/_manipulate_options_programatically.vim

See also

VIM script

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759561878, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/script/options/_manipulate_options_programatically(63): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78